package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:26
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceFileTypeConfigBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceFileTypeConfig workspaceFileTypeConfig;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceFileTypeConfig);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.Id);
		
																																						
				
																
		mappedDaoFields.put("fileTypeName",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.FileTypeName);
		
																																		
				
																				
		mappedDaoFields.put("fileExtension",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.FileExtension);
		
																														
				
																								
		mappedDaoFields.put("fileEditorMode",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.FileEditorMode);
		
																										
				
																												
		mappedDaoFields.put("fileTypeIcon",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.FileTypeIcon);
		
																						
				
																																
		mappedDaoFields.put("isCountLine",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.IsCountLine);
		
																		
				
																																				
		mappedDaoFields.put("isCanDiff",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.IsCanDiff);
		
														
				
																																								
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.Status);
		
										
				
																																												
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceFileTypeConfigDAO.Remarks);
		
						
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceFileTypeConfigBean() {
		super();
	    		
		this.workspaceFileTypeConfig = new com.ourteam.workspace.dao.WorkspaceFileTypeConfig();
                
	}
	
		
	public WorkspaceFileTypeConfigBean(com.ourteam.workspace.dao.WorkspaceFileTypeConfig workspaceFileTypeConfig) {
		super();
	
		this.workspaceFileTypeConfig = workspaceFileTypeConfig;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceFileTypeConfig convertToWorkspaceFileTypeConfig(){
		return this.workspaceFileTypeConfig;
	}
	
	public com.ourteam.workspace.dao.WorkspaceFileTypeConfig convertTo(){
		return this.workspaceFileTypeConfig;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceFileTypeConfig.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceFileTypeConfig.setId(id);
	}
		
																			
		
		
					
			
		
	/**
	 * Get fileTypeName
	 * 
	 * @return String
	 */
	public String getFileTypeName(){
		return (String) this.workspaceFileTypeConfig.getFileTypeName();
	}
	
	/**
	 * Set fileTypeName
	 * 
	 * @parameter String
	 */
	public void setFileTypeName(String fileTypeName){
		
		this.workspaceFileTypeConfig.setFileTypeName(fileTypeName);
	}
		
																	
		
		
							
			
		
	/**
	 * Get fileExtension
	 * 
	 * @return String
	 */
	public String getFileExtension(){
		return (String) this.workspaceFileTypeConfig.getFileExtension();
	}
	
	/**
	 * Set fileExtension
	 * 
	 * @parameter String
	 */
	public void setFileExtension(String fileExtension){
		
		this.workspaceFileTypeConfig.setFileExtension(fileExtension);
	}
		
															
		
		
									
			
		
	/**
	 * Get fileEditorMode
	 * 
	 * @return String
	 */
	public String getFileEditorMode(){
		return (String) this.workspaceFileTypeConfig.getFileEditorMode();
	}
	
	/**
	 * Set fileEditorMode
	 * 
	 * @parameter String
	 */
	public void setFileEditorMode(String fileEditorMode){
		
		this.workspaceFileTypeConfig.setFileEditorMode(fileEditorMode);
	}
		
													
		
		
											
			
		
	/**
	 * Get fileTypeIcon
	 * 
	 * @return String
	 */
	public String getFileTypeIcon(){
		return (String) this.workspaceFileTypeConfig.getFileTypeIcon();
	}
	
	/**
	 * Set fileTypeIcon
	 * 
	 * @parameter String
	 */
	public void setFileTypeIcon(String fileTypeIcon){
		
		this.workspaceFileTypeConfig.setFileTypeIcon(fileTypeIcon);
	}
		
											
		
		
													
			
		
	/**
	 * Get isCountLine
	 * 
	 * @return String
	 */
	public String getIsCountLine(){
		return (String) this.workspaceFileTypeConfig.getIsCountLine();
	}
	
	/**
	 * Set isCountLine
	 * 
	 * @parameter String
	 */
	public void setIsCountLine(String isCountLine){
		
		this.workspaceFileTypeConfig.setIsCountLine(isCountLine);
	}
		
									
		
		
															
			
		
	/**
	 * Get isCanDiff
	 * 
	 * @return String
	 */
	public String getIsCanDiff(){
		return (String) this.workspaceFileTypeConfig.getIsCanDiff();
	}
	
	/**
	 * Set isCanDiff
	 * 
	 * @parameter String
	 */
	public void setIsCanDiff(String isCanDiff){
		
		this.workspaceFileTypeConfig.setIsCanDiff(isCanDiff);
	}
		
							
		
		
																	
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceFileTypeConfig.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceFileTypeConfig.setStatus(status);
	}
		
					
		
		
																			
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceFileTypeConfig.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceFileTypeConfig.setRemarks(remarks);
	}
		
			
		
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceFileTypeConfigBean) == false) {
            return false;
        } // end if

        WorkspaceFileTypeConfigBean other = (WorkspaceFileTypeConfigBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceFileTypeConfig tempWorkspaceFileTypeConfig = other.convertToWorkspaceFileTypeConfig();
        
        if(tempWorkspaceFileTypeConfig == null || this.workspaceFileTypeConfig == null){
        	isEqual = false;
        }
        else if(tempWorkspaceFileTypeConfig == this.workspaceFileTypeConfig || tempWorkspaceFileTypeConfig.equals(this.workspaceFileTypeConfig) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceFileTypeConfigBean[] toArray(com.ourteam.workspace.dao.WorkspaceFileTypeConfig[] aWorkspaceFileTypeConfigs){
		
		return toArray(aWorkspaceFileTypeConfigs,null);
	}
	
	public static WorkspaceFileTypeConfigBean[] toArray(com.ourteam.workspace.dao.WorkspaceFileTypeConfig[] aWorkspaceFileTypeConfigs , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceFileTypeConfigs)){
		 	return new WorkspaceFileTypeConfigBean[0];
		 }
		 
		 int length = aWorkspaceFileTypeConfigs.length;
		 
		 WorkspaceFileTypeConfigBean[] beans = new WorkspaceFileTypeConfigBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceFileTypeConfigBean(aWorkspaceFileTypeConfigs[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceFileTypeConfigs[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}